# encoding=utf-8

import random

def zn_str2num(Zn):
    Dic = {'一': 1, '二': 2, '三': 3, '四': 4, '五': 5,
           '六': 6, '七': 7, '八': 8, '九': 9,
           '十': 10}
    i = 0
    v = 0
    ## FIXME: 二十二？？
    while i < len(Zn):
        v += Dic[Zn[i:i+3]]
        i += 3
    return v

def random_username():
    return 'needdel' + str(random.randint(0, 1000))

def random_pwd():
    return '123456'
